package yf.mall.vo.up;


import lombok.Data;

import java.util.Date;

import com.alibaba.excel.annotation.*;

import java.io.Serializable;



import yf.mall.entity.AppCourseEntity;
import yf.mall.vo.AppCourseVo;

                                    
/**
 * 课程信息表实体
 * 表名 app_course
 *
 * 
 *
 * @date Tue Aug 08 17:01:31 CST 2023
 */
@Data
public class AppCourseUp implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //课程id
            @ExcelProperty("课程id")
            private Long id;
        
                        //是否热门
            @ExcelProperty("是否热门")
            private Integer hot;
        
                        //课程名称
            @ExcelProperty("课程名称")
            private String title;
        
                        //课程总时长
            @ExcelProperty("课程总时长")
            private Long totalTimes;
        
                        //课程节数
            @ExcelProperty("课程节数")
            private Long courseShotCount;
        
                        //课程分类
            @ExcelProperty("课程分类")
            private Long courseType;
        
                        //IMG-课程封面
            @ExcelProperty("IMG-课程封面")
            private String cover;
        
                        //课程描述
            @ExcelProperty("课程描述")
            private String description;
        
                        //级别名称
            @ExcelProperty("级别名称")
            private Long levelId;
        
    
    public AppCourseUp() {

    }

    public AppCourseVo toVo() {

        AppCourseEntity entity = new AppCourseEntity();
            AppCourseVo vo = new AppCourseVo(entity);
                                    entity.setId(id);
            
                                    entity.setHot(hot);
            
                                    entity.setTitle(title);
            
                                    entity.setTotalTimes(totalTimes);
            
                                    entity.setCourseShotCount(courseShotCount);
            
                                    entity.setCourseType(courseType);
            
                                    entity.setCover(cover);
            
                                    entity.setDescription(description);
            
                                    entity.setLevelId(levelId);
            
        
        return  vo;
    }



}
